package com.wind.taobao.api.trade.trade.rest
{
	import com.wind.taobao.api.trade.trade.convert.TradeConvert;
	import com.wind.taobao.core.webservice.TaobaoListResponse;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.trades.sold.increment.get Response
	 * @author fxy
	 *
	 */
	public class TradesSoldIncrementGetResponse extends TaobaoListResponse
	{
		public var trades:ArrayCollection;

		public function TradesSoldIncrementGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initTrades();
		}

		private function initTrades():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("trades"))
					trades=TradeConvert.convertTrades(body["rsp"]["trades"]);
			}
		}

	}
}